/* eslint-disable no-unused-vars */
/**
 * 选中样式
 */
import namespace from "../../namespace";
import ArrayList from "../../util/ArrayList";

class SelectionPolicy extends namespace.policy.figure.DragDropPolicy {
  constructor() {
    super();
  }

  // 选中
  onSelect(canvas, figure) { }

  // 未选中
  onUnselect(canvas, figure) {
    this.figure.selectionHandles.each((i, f) => f.hide());
    this.figure.selectionHandles = new ArrayList();
  }
}

namespace.policy.figure.SelectionPolicy = SelectionPolicy;
